package com.letoken.platform.repo.ecommerce.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品
 * </p>
 *
 * @author author
 * @since 2023-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ecommerce_product")
@ApiModel(value="EcommerceProduct对象", description="商品")
public class EcommerceProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "价格(实付)")
    private BigDecimal realPrice;


    @ApiModelProperty(value = "产品类别")
    private Integer categoryId;

    @ApiModelProperty(value = "主图")
    private String pic;


    @ApiModelProperty(value = "商品编码")
    private String uid;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "商品标签")
    private String tags;

    @ApiModelProperty(value = "上架状态：0->上架；1->下架")
    private Integer publishStatus;

    @ApiModelProperty(value = "删除状态：0->未删除；1->已删除")
    private Integer deleteStatus;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "商品标题")
    private String title;

    @ApiModelProperty(value = "店铺ID")
    private Integer mallId;


    @ApiModelProperty(value = "上下架时间")
    private LocalDateTime publishTime;

    // 点击量
    private  Integer hits;

    @ApiModelProperty(value = "让利值")
    private BigDecimal contributing;

    private Float score;
}
